package main

func twoSum(numbers []int, target int) []int {
	l := 1
	r := len(numbers) - 1
	for l < r {
		v := numbers[l] + numbers[r]
		if v == target {
			return []int{l, r}
		}
		if v > target {
			r--
		} else {
			l++
		}
	}
	return []int{}
}
